﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Security;
using iLangl.Accounts;

namespace iLangl
{
	public class IAuthenticationService
	{
		public IFormsAuthenticationService FormsService { get; set; }
		public IMembershipService MembershipService { get; set; }

		public IAuthenticationService()
		{
			if (FormsService == null) { FormsService = new FormsAuthenticationService(); }
			if (MembershipService == null) { MembershipService = new AccountMembershipService(); }

		}


		public String CreateSession(String userName, String password)
		{
			if (!MembershipService.ValidateUser(userName, password))
			{
				return string.Empty;
			}


			return string.Empty;
		}
	}
}
